{extend name="mobile/layout"/}
{block name="seo"}
<title>{$info.title}-{$title}</title>	
<meta name="keywords" content="{$info.meta_keywords}-{$keywords}" />
<meta name="description" content="{$info.meta_description}-{$description}" />
{/block}
{block name="toplink"}
{/block}
{block name="content"} 
<div class="header-top">
  <div class="container">
    <span class="header-top-text">
      {$info.title}
    </span>
    <a class="top-back" onClick="javascript:window.history.back();return false;">
        <img src="__STATIC__/home/defaults/images/arrow-l.png">
    </a>
  </div>
</div>


<div id="box">
    <div class="row" id="outer">
        <ul id="tab">
            <li class="current">供应</li>
            <li>求购</li>
        </ul>
        <div id="content">       
            <ul class="prolist-box" style="display:block;">
                {uk:select table="supply" field="id,title,covers,create_time" cid="46"}
                    <li>
                        <a href="/gongying/{$vo.id}.html">
                            <img src="__UPLOAD__/{$vo.covers.thumb}">
                            {$vo.title}                      
                        </a>
                    </li>
                {/uk:select}
                {uk:select table="supply" field="id,title,covers,create_time" where="class='0'"}
                    <li>
                        <a href="/gongqiuone/{$vo.id}.html">
                            <img src="__UPLOAD__/{$vo.covers.thumb}">
                            {:msubstr($vo.title,0,14)}                      
                        </a>
                    </li>
                {/uk:select}
                <div class="clearfix"></div>
            </ul>            
            {$page|raw}
            <ul class="prolist-box">
                {uk:select table="supply" field="id,title,covers,create_time" cid="47"}
                    <li>
                        <a href="/qiugou/{$vo.id}.html">
                            <img src="__UPLOAD__/{$vo.covers.thumb}">
                            {:msubstr($vo.title,0,14)}                     
                        </a>
                    </li>
                {/uk:select}
                {uk:select table="supply" field="id,title,covers,create_time" where="class='1'"}
                    <li>
                        <a href="/gongqiuone/{$vo.id}.html">
                            <img src="__UPLOAD__/{$vo.covers.thumb}">
                            {:msubstr($vo.title,0,14)}                     
                        </a>
                    </li>
                {/uk:select}
                <div class="clearfix"></div> 
            </ul>
            {$page|raw}                       
        </div>
    </div>
</div>


<script>
    $(function(){
        window.onload = function()
        {
            var $li = $('#tab li');
            var $ul = $('#content ul');
                        
            $li.click(function(){
                var $this = $(this);
                var $t = $this.index();
                $li.removeClass();
                $this.addClass('current');
                $ul.css('display','none');
                $ul.eq($t).css('display','block');
            })
        }
    });
</script>
{/block}